import request from "@/utils/request";

// 获取 验证码
export const getCode = () => {
  return request.get("/login/captcha");
};

// 用户登录
export const postLogin = (data) => {
  return request.post("/login", data);
};

// 获取用户个人信息
export const getUserInfo = () => {
  return request.get("/login/info");
};
